<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:sc="http://primefaces.org/ui/showcase"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/template.xhtml">

    <ui:define name="title">
        Cache
    </ui:define>

    <ui:define name="description">
        Cache component is used to reduce page load time by caching the content in a global cache after the initial rendering. Various
        cache providers are supported like ehcache and hazelcast. Showcase use actually this component to render source examples for every PrimeFaces components.
        Why? Because parsing an xhtml file takes time, and since the rendering won't change during the whole lifecycle of the application, it's better to cache the content.

        <ul style="color: white;">
            <li>tabscode.xhtml demonstrate how to use cache component declaratively</li>
            <li>ShowcaseUtil demonstrate how to use cache API programmatically</li>
        </ul>

    </ui:define>

    <ui:param name="documentationLink" value="/components/cache" />

    <ui:define name="source">
        <sc:tabscode value="#{sc:getFilesContent('/WEB-INF/tags/tabscode.xhtml', false)}">
            <p:tab title="/org/primefaces/showcase/util/ShowcaseUtil.java"/>
        </sc:tabscode>
    </ui:define>
</ui:composition>